home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Mac OS SDK / Dev.CD Jul 99 SDK1.toast / Development Kits / Mac OS / QuickDraw3D 1.6 SDK / Mac SampleCode New for 1.6 / WorldRayPickSample / Headers / WRay_Document.h next >
Encoding:
C/C++ Source or Header  |  1999-05-20  |  1.4 KB  |  83 lines  |  [TEXT/CWIE]

  1. /*  
  2.  *    WRay_Document.h
  3.  *
  4.  *    QuickDraw 3D 1.6 Sample
  5.  *    Robert Dierkes
  6.  *
  7.  *     07/28/98    RDD        Created.
  8.  */
  9.  
  10. #ifndef _HWRay_Document
  11. #define _HWRay_Document
  12.  
  13.  
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17.  
  18. #include <QuickTimeComponents.h>
  19.  
  20. #include "QD3D.h"
  21.  
  22.  
  23. /*------------------*/
  24. /*      Constants        */
  25. /*------------------*/
  26.  
  27.  
  28. /*----------------------*/
  29. /*   Type Definitions    */
  30. /*----------------------*/
  31.  
  32.  
  33. /*
  34.  * TDocument
  35.  */
  36. typedef struct TDocument {
  37.     WindowPtr            fWindow;        /* document's window                        */
  38.  
  39.     TQ3ViewObject        fView;            /* the view for the scene                    */
  40.     TQ3GroupObject        fModel;            /* object in the scene being modelled        */
  41.     TQ3Matrix4x4        fMatrix;
  42.  
  43. } TDocumentRec_;
  44.  
  45. typedef TDocumentRec_ TDocument, *TDocumentPtr;
  46.  
  47.  
  48. TQ3Boolean    Document_Initialize(
  49.     TDocumentPtr            pDocument);
  50.  
  51. TQ3Boolean    Document_Exit(
  52.     TDocumentPtr            pDocument);
  53.  
  54. TQ3Status    Document_Draw(
  55.     TDocumentPtr            pDocument);
  56.  
  57. TQ3Status    Document_Submit_Objects(
  58.     TDocumentPtr            pDocument,
  59.     TQ3ViewObject            view);
  60.  
  61. TQ3Status    Document_UpdateCameraAspectRatio (
  62.     TDocumentPtr            pDocument,
  63.     Rect                    *pPortRect);
  64.  
  65. TQ3Status    Document_UpdateCamera (
  66.     TDocumentPtr            pDocument);
  67.  
  68. TQ3Status    Document_GetMaximumDimension(
  69.     TDocumentPtr            pDocument,
  70.     float                    *pMaxDimension,
  71.     TQ3BoundingBox            *pReturnedBoundingBox);
  72.  
  73. TQ3Status    Document_BoundingBox(
  74.     TDocumentPtr            pDocument,
  75.     TQ3BoundingBox            *pBoundingBox);
  76.  
  77. #ifdef __cplusplus
  78. }
  79. #endif
  80.  
  81.  
  82. #endif /* _HWRay_Document */
  83.